<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>
    [#import "/admin/include/admin_pagination.ftl" as p/]
    [#include "/admin/include/admin_static.htm"]
</head>
    <body>
        <div class="main_admin_content">

            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>投标列表</legend>
            </fieldset>
            <script>

            $(function() {
        		$("#export").click( function() {
                    $("#searchForm").attr("action","${path}/admin/borrow/exportTendersList.aspx").submit();
                });
        	});
            </script>
          <form id="searchForm">
          <input type="hidden" name="borrowId" value="${borrowId}"/>
          </form>
            <input id="export" type="button" class="btn_blue large" style="width: 100px; heigth: 30px; line-height: 30px" value="导出">
            <table class="layui-table">
                <colgroup>

                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                    <col width="80">
                </colgroup>
                <thead>
                <tr>
  					<th>用户ID</th>
                    <th>用户名称</th>
                    <th>真实姓名</th>
                    <th>投标编号</th>
                    <th>投标金额</th>
                    <th>预期收益</th>
                    <th>投标时间</th>
                </tr>
                </thead>
                <tbody>
                [#list tenders as tender]
					<tr>

						<td>${tender.user_id}</td>
						<td>
							${tender.u_userName }

						</td>
						<td>${tender.real_name }</td>
						<td>${tender.id }</td>
						<td>￥${tender.success_money }</td>
						<td>￥${tender.interest }</td>
						<td>
                            ${p2p_date_format(tender.addtime ,"yyyy-MM-dd HH:mm:ss")}
                      </td>
					</tr>
                [/#list]
                </tbody>
				<tr>
					<th colspan="4">合计：</th>
					<th>${currency((totalTender.totalAccount)!0)}</th>
					<th colspan="4"></th>
				</tr>
            </table>
        </div>
    </body>
</html>